/*
 * @(#)ValidateException.java
 *
 * Copyright 2012 by ShenY BIS, All rights reserved.
 */

package com.bis.framework.exception;

import java.util.ArrayList;
import java.util.List;

/**
 * ValidateException
 * 
 * @author BIS 2012-12-24
 */
public class ValidateException extends BusinessException
{

    /**
     * Version Id
     */
    private static final long serialVersionUID = 1L;

    /**
     * cause
     */
    private Throwable         cause;

    /**
     * lstMessage
     */
    private List<String>      lstMessage;

    /**
     * pageComponentId
     */
    private String            pageComponentId;

    /**
     * ValidateException
     * @param t
     */
    public ValidateException(Throwable t)
    {
        super(t.getMessage());
        this.cause = t;
    }

    /**
     * ValidateException
     */
    public ValidateException()
    {
        super();
        lstMessage = new ArrayList<String>();
    }

    /**
     * @return the cause
     */
    public Throwable getCause()
    {
        return cause;
    }

    /**
     * @param cause the cause to set
     */
    public void setCause(Throwable cause)
    {
        this.cause = cause;
    }

    /**
     * @return the lstMessage
     */
    public List<String> getLstMessage()
    {
        return lstMessage;
    }

    /**
     * @param lstMessage the lstMessage to set
     */
    public void setLstMessage(List<String> lstMessage)
    {
        this.lstMessage = lstMessage;
    }

    /**
     * @return the pageComponentId
     */
    public String getPageComponentId()
    {
        return pageComponentId;
    }

    /**
     * @param pageComponentId the pageComponentId to set
     */
    public void setPageComponentId(String pageComponentId)
    {
        this.pageComponentId = pageComponentId;
    }

    /**
     * setPageComponentId
     * @Description:
     * @param pageObjName
     * @param pageCode
     */
    public void setPageComponentId(String pageObjName, String pageCode)
    {
        this.pageComponentId = pageObjName + "." + pageCode;
    }
}
